Skip to content

Conversation

@TrevorBurnham
Copy link
Contributor

This commit replaces barrel imports like

import { range } from 'lodash'

with direct imports like

import range from 'lodash/range'

All of these imports are in test code (Lodash is a devDependency only), so this won't affect the build. But it will make code style more consistent, and it should slightly improve test performance.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@TrevorBurnham TrevorBurnham requested a review from a team as a code owner August 25, 2025 21:31
@TrevorBurnham TrevorBurnham requested review from pan-kot and removed request for a team August 25, 2025 21:31
import Axe from 'axe-core';
import { HtmlValidate } from 'html-validate';
import { compact, uniq } from 'lodash';
import compact from 'lodash/compact';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add an ESLint rule for pages to reinforce this?

This commit replaces barrel imports like

```
import { range } from 'lodash'
```

with direct imports like

```
import range from 'lodash/range'
```

All of these imports are in test code (Lodash is a devDependency only),
so this won't affect the build. But it will make code style more
consistent, and it should slightly improve test performance.
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.17%. Comparing base (031f2af) to head (b05c834).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3796   +/-   ##
=======================================
  Coverage   97.16%   97.17%           
=======================================
  Files         856      856           
  Lines       25229    25230    +1     
  Branches     8932     8933    +1     
=======================================
+ Hits        24515    24516    +1     
+ Misses        708      665   -43     
- Partials        6       49   +43     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pan-kot pan-kot added this pull request to the merge queue Oct 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 24, 2025
@pan-kot pan-kot added this pull request to the merge queue Oct 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 24, 2025
@pan-kot pan-kot added this pull request to the merge queue Oct 24, 2025
Merged via the queue into cloudscape-design:main with commit 59b27e4 Oct 24, 2025
47 of 48 checks passed
kuahuu pushed a commit to kuahuu/components that referenced this pull request Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants